@media (min-width: 992px){
    .navbar-form {
        margin-top: 21px;
        margin-bottom: 21px;
        padding-left: 5px;
        padding-right: 5px;
    }

    .navbar-nav.navbar-right > li > .dropdown-menu:before{
        left: auto;
        right: 12px;
    }

    .navbar-nav.navbar-right > li > .dropdown-menu:after{
        left: auto;
        right: 12px;
    }

    .footer:not(.footer-big){
        nav > ul{
           li:first-child{
             margin-left: 0;
           }
        }
    }

    .card{
        form{
            [class*="col-"]:first-child{
                padding-left: 15px;
            }
            [class*="col-"]:last-child{
                padding-right: 15px;
            }
        }
    }

    .sidebar{
        .navbar-form{
            display: none !important;
        }
        .nav-mobile-menu{
            display: none;
        }
    }

    .close-layer{
        display: none;
    }

    .wrapper .navbar-dashboard-fixed{
        width: calc(100% - 260px);
        right: 0;
        left: auto;
    }

    .sidebar-mini{
        .wrapper .navbar-dashboard-fixed{
            width: calc(100% - 80px);
        }
    }
}

/*          Changes for small display      */

@media (max-width: 991px){

    .form-group{
        textarea{
            padding-top: 15px;
        }
    }

     .menu-on-left{
        &.nav-open{
            .main-panel,
            .wrapper-full-page,
            .wrapper .main-panel,
            .navbar-fixed > div{
                @include transform-translate-x(260px);
            }

            .sidebar,
            .off-canvas-sidebar{
                @include transform-translate-x(0px);
            }

            #bodyClick{
                right: 0;
                left: auto;
                width: calc(100% - 260px);
            }
        }

        .sidebar,
        .off-canvas-sidebar{
            left: 0;
            right: auto;
            @include transform-translate-x(-260px);
        }
    }

    .timeline{
        &:before{
            left: 5%;
        }

        > li > .timeline-badge{
            left: 5%;
        }

        > li > .timeline-panel{
            float: right;
            width: 86%;

            &:before{
                border-left-width: 0;
                border-right-width: 15px;
                left: -15px;
                right: auto;
            }

            &:after{
                border-left-width: 0;
                border-right-width: 14px;
                left: -14px;
                right: auto;
            }
        }
    }

    .nav-mobile-menu{
        .dropdown .dropdown-menu{
            display: none;
        }

        .dropdown.open .dropdown-menu{
            display: block;
        }

        li.active > a{
            background-color: rgba(255, 255, 255, 0.1);
        }
    }


    .navbar-minimize {
        display: none;
    }

    .card .form-horizontal {
        .label-on-left,
        .label-on-right{
            padding-left:15px;
            padding-top: 8px;
        }

        .form-group{
            margin-top: 0px;
        }

        .checkbox-radios{
            padding-bottom: 15px;

            .checkbox:first-child,
            .radio:first-child{
                margin-top: 0;
            }
        }

        .checkbox-inline{
            margin-top: 0;
        }
    }
    .sidebar{
        display: none;
        box-shadow: none;

        .sidebar-wrapper{
            padding-bottom: 60px;
        }

        .nav-mobile-menu{
            margin-top: 0;

            .notification{
                float: left;
                line-height: 30px;
                margin-right: 8px;
            }

            .open .dropdown-menu {
                position: static;
                float: none;
                width: auto;
                margin-top: 0;
                background-color: transparent;
                border: 0;
                -webkit-box-shadow: none;
                box-shadow: none;
            }
        }
    }

    .main-panel{
        width: 100%;
    }
    .wrapper-full-page .navbar.navbar-transparent{
        padding-top: 15px;
        background-color: rgba(0, 0, 0, 0.45);
    }
    body {
         position: relative;
         min-height: 100vh;
    }
    .wrapper .main-panel,
    .sidebar-pages .main-panel,
    .off-canvas-menu .wrapper-full-page,
    .sidebar-pages .navbar .container{
       @include transition (0.33s, cubic-bezier(0.685, 0.0473, 0.346, 1));
       left: 0;
    }

    .navbar .container{
        @include transition (0.33s, cubic-bezier(0.685, 0.0473, 0.346, 1));
    }

    .sidebar-pages .navbar .navbar-collapse.collapse,
    .sidebar-pages .navbar .navbar-collapse.collapse.in,
    .sidebar-pages .navbar .navbar-collapse.collapsing{
        display: none !important;
    }


    .sidebar,
    .off-canvas-menu .navbar-collapse{
        position: fixed;
        display: block;
        top: 0;
        height: 100% !important;
        max-height: none;
        width: 260px;
        right: 0;
        left: auto;
        z-index: 1032;
        visibility: visible;
        background-color: #9A9A9A;
        overflow-y: visible;
        border-top: none;
        text-align: left;
        padding-right: 0px;
        padding-left: 0px;

        @include transform-translate-x(260px);
        @include transition (0.33s, cubic-bezier(0.685, 0.0473, 0.346, 1));
        > ul {
            position: relative;
            z-index: 4;
            overflow-y:scroll;
            height: calc(100vh - 61px);
            width: 100%;
        }
        &::before{
            top: 0;
            left: 0;
            height: 100%;
            width: 100%;
            position: absolute;
            background-color: #282828;
            display: block;
            content: "";
            z-index: 1;
        }

        .logo{
            position: relative;
            z-index: 4;
        }

        .navbar-form{
            margin: 10px 0px;
            float: none !important;
            padding-top: 1px;
            padding-bottom: 1px;
            position: relative;
        }

        .table-responsive {
            width: 100%;
            margin-bottom: 15px;
            overflow-x: scroll;
            overflow-y: hidden;
            -ms-overflow-style: -ms-autohiding-scrollbar;
            -webkit-overflow-scrolling: touch;
        }
    }

    .navbar-collapse .navbar-nav{
        float: none !important;
    }

    .bootstrap-collapse{
        .navbar-collapse{
            box-shadow: none;
        }
    }

    .form-group{

        &.form-search{
            .form-control{
                font-size: 1.7em;
                height: 37px;
                width: 78%;
            }
        }
    }

    .navbar-form{
        .btn{
            position: absolute;
            top: 12px;
            right: 15px;
        }
    }

    .nav-open{
        .sidebar-pages .main-panel,
        .sidebar-pages .navbar .container,
        .wrapper .main-panel{
            left: 0;
            @include transform-translate-x(-260px);
        }

    }

    .nav-open .sidebar{
        @include shadow-big();
    }

    .nav-open{
        .off-canvas-sidebar,
        .sidebar{
            @include transform-translate-x(0);
        }
    }

    .close-layer{
        height: 100%;
        width: 100%;
        position: absolute;
        opacity: 0;
        top: 0;
        left: auto;
        background: rgba(0, 0, 0, 0.35);
        content: "";
        z-index: 9999;
        overflow-x: hidden;

        @include transition($slow-transition-time, $transition-ease-in);

        &.visible{
            opacity: 1;
        }
    }

    .navbar-toggle .icon-bar {
          display: block;
          position: relative;
          background: #fff;
          width: 24px;
          height: 2px;
          border-radius: 1px;
          margin: 0 auto;
    }

    .navbar-header .navbar-toggle {
        padding: 15px;
        margin-top: 4px;
        width: 40px;
        height: 40px;
        display: block !important;
        float: right;
    }
    .bar1,
    .bar2,
    .bar3 {
      outline: 1px solid transparent;
    }

    @include topbar-x-rotation();
    @include topbar-back-rotation();
    @include bottombar-x-rotation();
    @include bottombar-back-rotation();

    .navbar-toggle{
        .icon-bar:nth-child(2){
          top: 0px;
          @include bar-animation($topbar-back);
        }
        .icon-bar:nth-child(3){
          opacity: 1;
        }
        .icon-bar:nth-child(4){
          bottom: 0px;
          @include bar-animation($bottombar-back);
        }

        &.toggled{
            .icon-bar:nth-child(2){
              top: 6px;
              @include bar-animation($topbar-x);
            }
            .icon-bar:nth-child(3){
              opacity: 0;
            }
            .icon-bar:nth-child(4){
              bottom: 6px;
              @include bar-animation($bottombar-x);
            }
        }
    }

    @-webkit-keyframes fadeIn {
      0% {opacity: 0;}
      100% {opacity: 1;}
    }
    @-moz-keyframes fadeIn {
      0% {opacity: 0;}
      100% {opacity: 1;}
    }
    @keyframes fadeIn {
      0% {opacity: 0;}
      100% {opacity: 1;}
    }

    .dropdown-menu .divider{
        background-color: rgba(229, 229, 229, 0.15);
    }

    .navbar-nav {
        margin: 1px 0;
        margin-top: 15px;

        .open .dropdown-menu > li {
            & > a{
                padding: 15px 15px 5px 50px;
            }

            &:first-child > a{
                padding: 5px 15px 5px 50px;
            }

            &:last-child > a {
                padding: 15px 15px 25px 50px;
            }
        }
    }

    [class*="navbar-"] .navbar-nav {
        &.navbar-nav .open .dropdown-menu > li > a:active {
            opacity: 1;
        }

        & .dropdown > a{
            &:hover .caret {
                border-bottom-color: #777;
                border-top-color: #777;
            }
            &:active .caret {
                border-bottom-color: white;
                border-top-color: white;
            }
        }

    }

    .dropdown-menu {
        display: none;
    }
    .navbar-fixed-top {
        -webkit-backface-visibility: hidden;
    }
    #bodyClick {
        height: 100%;
        width: 100%;
        position: fixed;
        opacity: 0;
        top: 0;
        left: auto;
        right: 250px;
        content: "";
        z-index: 9999;
        overflow-x: hidden;
    }

    .social-line .btn{
        margin: $margin-bottom;
    }
    .subscribe-line .form-control{
        margin: $margin-bottom;
    }
    .social-line.pull-right{
        float: none;
    }
    .footer:not(.footer-big) nav > ul li{
        float: none;
    }
    .social-area.pull-right{
        float: none !important;
    }
    .form-control + .form-control-feedback{
        margin-top: -8px;
    }
    .navbar-toggle:hover,.navbar-toggle:focus {
        background-color: transparent !important;
    }

    .media-post .author{
        width: 20%;
        float: none !important;
        display: block;
        margin: 0 auto 10px;
    }
    .media-post .media-body{
        width: 100%;
    }

    .sidebar-pages .navbar-header .collapse,
    .sidebar-pages .navbar-toggle {
        display:block !important;
    }

    .off-canvas-menu .navbar-header .collapse,
    .off-canvas-menu .navbar-toggle {
        display:none !important;
    }

    .sidebar-pages .navbar-collapse.collapse{
        height: 100% !important;
    }
    .navbar-collapse.collapse.in {
        display: block;
    }
    .navbar-header {
        float:none;
    }

    .off-canvas-menu .navbar-header{
        float: left;
    }
    .navbar-collapse{
        .nav p{
            font-size: $font-size-base;
            margin: 0;
        }
    }

    .navbar-transparent{
        background: rgba(0,0,0,.6);
    }
}

//overwrite table responsive for 768px screens

@media (min-width: 768px){
    .navbar> .container-fluid .navbar-brand{
        margin-left: 0;
    }
}

@media (max-width: 991px){

    .main-panel{
        .content{
            padding-left: 0;
            padding-right: 0;
        }
    }

    .off-canvas-menu{
        .nav > li > a,
        .nav > li > a:hover{
            color: $white;
        }

        .nav > li > a i,
        .nav > li > a i:hover{
            color: #a9afbb;
        }

        .navbar-header{
            float:none;
        }

        .navbar-header .collapse, .navbar-toggle {
            display:block !important;
        }

        &.nav-open .wrapper-full-page {
            @include transform-translate-x(-260px);
        }

        .navbar-collapse{
            padding-right: 15px;
            padding-left: 15px;
        }
    }

    .navbar-nav > li{
        float: none;
        position: relative;
        display: block;
    }

    .fileinput{
        display: block;
    }

    .card{
        .card-header{
            &.card-header-text{
                display: block;
            }
        }
    }

    .navbar-form{
        .form-group{
            margin-bottom: 0;
        }
    }

    .table-responsive{
        border: none;
    }

    .modal-small{
        width: auto;
        margin-left: 15px;
        margin-right: 15px;
    }
}

@media (min-width: 992px){
    .table-full-width{
        margin-left: -20px;
        margin-right: -20px;
    }
    .table-responsive{
        overflow: auto;
    }

}

@media all and (max-width: 490px){
    .nav-center .nav-pills-icons{
        max-width: 211px;
    }
}
@media screen and (min-width: 768px) and (max-width: 992px) {
    .bootstrap-collapse .navbar-collapse.collapse{
        display: none !important;

        &.in{
            display: block !important;
        }
    }
}
